<?php
/**
 * The following variables are available in this template:
 * - $this: the CrudCode object
 */
?>
<?php echo "<?php\n"; ?>
/* @var $this <?php echo $this->getControllerClass(); ?> */
/* @var $model <?php echo $this->getModelClass(); ?> */
?>


<section class="panel">
    <header class="panel-heading">
        <i class="icon-cogs"></i> <?php echo $this->pluralize($this->class2name($this->modelClass)); ?>
        <div class="pull-right ">
            <?php echo "<?php echo CHtml::link('<i class=\'icon-return\'></i> 返回', 'javascript:history.back();', array('class' => 'btn btn-info'));?>"; ?>
        </div>
        <div class="clearfix"></div>

    </header>
    <div class="panel-body">
	<?php echo "<?php"; ?> $this->widget('zii.widgets.CDetailView', array(
	'data'=>$model,
	'attributes'=>array(
	<?php
	foreach($this->tableSchema->columns as $column)
		echo "\t\t'".$column->name."',\n";
	?>
		),
	)); ?>
    </div>
</section>

